package com.toocms.jinjuhang.ui.mine.management_system.withdraw

import com.toocms.jinjuhang.R
import com.toocms.jinjuhang.BR
import com.toocms.jinjuhang.databinding.FgtWithdrawRecordBinding
import com.toocms.jinjuhang.ui.base.BaseFgt

class WithdrawRecordFgt :BaseFgt<FgtWithdrawRecordBinding,WithdrawRecordModel>(){
    override fun onFragmentCreated() {
        topBar.setTitle(R.string.str_withdraw_record)
    }

    override fun getLayoutResId()=R.layout.fgt_withdraw_record

    override fun getVariableId()=BR.withdrawRecordModel

    override fun viewObserver() {
        viewModel.stopRefreshOrLoadSingleLiveEvent.observe(this){
            binding.refreshSrl.finishRefresh()
            binding.refreshSrl.finishLoadMore()
        }
    }

}